﻿namespace elasticsearch_microservice.Models
{
    public class Product
    {
        public int ID { get; set; }

        public string Name { get; set; } = "";

        public decimal Price { get; set; }

        public DateTime CreateTime { get; set; }
    }

    public class ProductDocument
    {
        public string IndexName { get; set; } = "";

        public Product Product { get; set; } = new Product();
    }
}
